package com.stduy.hello.helloword;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.web.bind.annotation.*;

@SpringBootApplication
@RestController
public class HelloWordApplication {

    public static void main(String[] args) {
        SpringApplication.run(HelloWordApplication.class, args);
    }

    @GetMapping("/{msg}")
    public String msg(@PathVariable String msg) {
        return "你好：" + msg;
    }

    @GetMapping("/")
    public String index() {
        return "devops hello ! 666 " ;
    }

}
